import React from 'react';
class VoteHead extends React.Component {
	render() {
		const store = this.props.store;
		let { title, supNum, oppNum } = store.getState().vote;

		return <header>
			<h3>{title}</h3>
			<span>N:{supNum + oppNum}</span>
		</header>;
	}
	componentDidMount() {
		this.props.store.subscribe(() => {
			this.forceUpdate();
		});
	}
}
export default VoteHead;